/* RESET GLOBAL */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: #050509;
  color: #f5f5f5;
  line-height: 1.7;
}

/* SCROLLBAR DISCRET */

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #050509;
}

::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 3px;
}

/* CONTAINER GÉNÉRIQUE */

.max-width {
  width: min(1120px, 100% - 40px);
  margin: 0 auto;
}

/* BOUTON RETOUR EN HAUT */

.scroll-up-btn {
  position: fixed;
  height: 40px;
  width: 40px;
  background: #f5f5f5;
  color: #050509;
  right: 20px;
  bottom: 20px;
  text-align: center;
  line-height: 40px;
  font-size: 22px;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.6);
  z-index: 50;
}

.scroll-up-btn.show {
  bottom: 30px;
  opacity: 1;
  pointer-events: auto;
}

/* NAVBAR */

.navbar {
  position: fixed;
  width: 100%;
  z-index: 40;
  padding: 14px 0;
  background: linear-gradient(
    to bottom,
    rgba(5, 5, 9, 0.96),
    rgba(5, 5, 9, 0.7),
    transparent
  );
  backdrop-filter: blur(16px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 10px;
}

.logo-main {
  font-weight: 600;
}

.logo-sub {
  opacity: 0.7;
}

.navbar .menu {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.navbar .menu li a {
  color: #f5f5f5;
  position: relative;
  padding-bottom: 4px;
}

.navbar .menu li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: #d7b676;
  transition: width 0.25s ease;
}

.navbar .menu li a:hover::after {
  width: 100%;
}

/* SWITCH DE LANGUE */

.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.lang-btn {
  background: transparent;
  border: none;
  color: #f5f5f5;
  opacity: 0.55;
  cursor: pointer;
  padding: 0;
}

.lang-btn.active {
  opacity: 1;
}

.lang-separator {
  opacity: 0.4;
}

/* MENU BURGER */

.menu-btn.burger {
  display: none;
  font-size: 20px;
  color: #f5f5f5;
  cursor: pointer;
}

/* BOUTONS GÉNÉRAUX */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.8rem;
  border-radius: 999px;
  border: 1px solid #f5f5f5;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 500;
  cursor: pointer;
  background: transparent;
  color: #f5f5f5;
  transition: all 0.25s ease;
}

.btn:hover {
  background: rgba(245, 245, 245, 0.08);
}

.hero-btn {
  background: #f5f5f5;
  color: #050509;
  border-color: #f5f5f5;
}

.hero-btn:hover {
  background: #d7b676;
  border-color: #d7b676;
}

.about-btn {
  margin-top: 1.2rem;
}

/* TITRES DE SECTION */

section {
  padding: 90px 0;
}

.title {
  position: relative;
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  font-weight: 500;
  margin-bottom: 40px;
  text-align: left;
}

.title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -12px;
  width: 58px;
  height: 2px;
  background: linear-gradient(90deg, #d7b676, transparent);
}

/* SECTION HOME */

.home {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: url("photo162.2.jpg") center center / cover no-repeat fixed;
}

.home .overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(0, 0, 0, 0.1), rgba(5, 5, 9, 0.96));
}

.home .max-width {
  position: relative;
  z-index: 1;
}

.home-content {
  max-width: 520px;
}

.home .home-content .text-1 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  opacity: 0.8;
  margin-bottom: 0.8rem;
}

.home .home-content .text-2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(3.1rem, 4.8vw, 4.4rem);
  line-height: 1.06;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
}

.home .home-content .text-3 {
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.9;
  margin-bottom: 1.7rem;
}

/* SECTION ABOUT */

.about {
  background: radial-gradient(circle at top, #11121b 0, #050509 55%);
}

.about .about-content {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: center;
}

.about .column.left {
  display: flex;
  justify-content: flex-start;
}

.about-photo-frame {
  border-radius: 24px;
  padding: 10px;
  background: radial-gradient(circle at top left, #d7b676 0, #11121b 40%, #050509 80%);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
}

.about-photo-frame img {
  display: block;
  border-radius: 18px;
  max-width: 100%;
}

.about .column.right .text {
  font-weight: 500;
  margin-bottom: 0.6rem;
  font-size: 1.02rem;
}

.about .column.right p {
  font-size: 0.95rem;
  opacity: 0.9;
  margin-bottom: 0.9rem;
}

.section-subtitle {
  margin-top: 0.8rem;
}

.about .about-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 18px;
  font-size: 0.9rem;
  opacity: 0.95;
  margin-top: 0.4rem;
  margin-bottom: 0.9rem;
}

/* SECTION DIGITALS */

.digitals {
  background: #060712;
}

.digitals-intro {
  font-size: 0.95rem;
  opacity: 0.8;
  max-width: 520px;
  margin-bottom: 28px;
}

/* layout flex pour éviter les grands vides, mais garder 3 colonnes sur grand écran */
.digitals-groups {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
}

.digitals-group {
  background: #0a0b16;
  border-radius: 20px;
  border: 1px solid rgba(245, 245, 245, 0.06);
  padding: 16px 14px 18px;
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 0 0 calc((100% - 2 * 24px) / 3); /* ≃ 3 colonnes */
}

.digitals-group h3 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 4px;
  opacity: 0.85;
}

.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.gallery img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.75);
  transform: translateY(0);
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}

/* Masquer les slots “fantômes” (images sans src) */
.gallery img[src=""] {
  display: none;
}

.gallery img:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.9);
  filter: brightness(1.05);
}

.digitals-note {
  margin-top: 26px;
  font-size: 0.85rem;
  opacity: 0.75;
}

/* SECTION SERVICES */

.services {
  background: radial-gradient(circle at top, #11121b 0, #050509 55%);
}

.serv-content {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.services .card {
  background: #0a0b16;
  border-radius: 20px;
  border: 1px solid rgba(245, 245, 245, 0.06);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.7);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.services .card .box {
  padding: 22px 20px 24px;
  text-align: left;
}

.services .card i {
  font-size: 1.6rem;
  margin-bottom: 12px;
  color: #d7b676;
}

.services .card .text {
  font-weight: 500;
  margin-bottom: 8px;
}

.services .card p {
  font-size: 0.9rem;
  opacity: 0.8;
}

.services .card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.85);
  border-color: rgba(215, 182, 118, 0.6);
}

/* SECTION CONTACT */

.contact {
  background: #050509;
}

.contact-content {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 40px;
  align-items: flex-start;
}

.contact .column.left .text {
  font-weight: 500;
  margin-bottom: 0.6rem;
}

.contact .column.left p {
  font-size: 0.95rem;
  opacity: 0.85;
  margin-bottom: 1.4rem;
}

.icons .row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.icons .row i {
  font-size: 1rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(245, 245, 245, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.icons .info .head {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  opacity: 0.7;
}

.icons .info .sub-title {
  font-size: 0.95rem;
}

.icons .info .sub-title a {
  color: #f5f5f5;
}

.icons .info .sub-title a:hover {
  opacity: 0.8;
}

/* FORMULAIRE DE CONTACT */

.contact .column.right .text {
  font-weight: 500;
  margin-bottom: 0.6rem;
}

#contact-form {
  display: grid;
  gap: 10px;
}

.field {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(245, 245, 245, 0.12);
  background: rgba(9, 9, 16, 0.85);
  color: #f5f5f5;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

textarea.field {
  border-radius: 18px;
  min-height: 130px;
  resize: vertical;
}

.field::placeholder {
  color: rgba(245, 245, 245, 0.5);
}

.field:focus {
  border-color: #d7b676;
  background: #060712;
  box-shadow: 0 0 0 1px rgba(215, 182, 118, 0.6);
}

/* FOOTER */

.site-footer {
  border-top: 1px solid rgba(245, 245, 245, 0.06);
  padding: 14px 0 20px;
  font-size: 0.8rem;
  opacity: 0.8;
  background: #050509;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

/* ---------- PAGE PHOTOS ---------- */

.photos-page {
  background: #050509;
}

.photos-main {
  padding-top: 90px; /* pour compenser la navbar fixe */
}

.photos-section {
  padding: 100px 0 80px;
}

.photos-header .title {
  margin-bottom: 18px;
}

.photos-intro {
  font-size: 0.95rem;
  opacity: 0.8;
  max-width: 580px;
}

.photos-gallery {
  margin-top: 24px;
}

/* 4 colonnes sur desktop */
.photos-page .gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

/* Images homogènes, comme dans les digitals */
.photos-page .gallery img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.75);
  transform: translateY(0);
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}

.photos-page .gallery img:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.9);
  filter: brightness(1.05);
}

/* RESPONSIVE */

@media (max-width: 992px) {
  .navbar .menu {
    position: absolute;
    right: 20px;
    top: 56px;
    flex-direction: column;
    background: rgba(5, 5, 9, 0.98);
    padding: 14px 18px;
    border-radius: 18px;
    border: 1px solid rgba(245, 245, 245, 0.12);
    display: none;
  }

  .navbar .menu.show {
    display: flex;
  }

  .menu-btn.burger {
    display: block;
  }

  .about .about-content {
    grid-template-columns: 1fr;
  }

  .about-photo-frame {
    max-width: 320px;
    margin: 0 auto;
  }

  /* Digitals : 2 colonnes sur tablette */
  .digitals-group {
    flex: 0 0 calc(50% - 12px);
  }

  .serv-content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-content {
    grid-template-columns: 1fr;
  }

  .photos-page .gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  section {
    padding: 80px 0;
  }

  .home {
    background-attachment: scroll;
  }

  .home-content {
    text-align: left;
  }

  /* Digitals : 1 colonne sur mobile */
  .digitals-groups {
    flex-direction: column;
  }

  .digitals-group {
    flex: 0 0 100%;
  }

  .serv-content {
    grid-template-columns: 1fr;
  }

  .title {
    font-size: 1.7rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .photos-page .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
